package demo6;



class OutClass {
    public int data1;
    public int data2;

    //静态内部类
    static class InnerClass{
        public int data4 = 10;
        private int data5 = 29;
        static int dat6 = 9;
        public void test() {
            System.out.println("内部类test.....");
        }
    }

}
public class Test {
    public static void main(String[] args) {
        //实例化一个静态内部类
        OutClass.InnerClass innerClass = new OutClass.InnerClass();
        Object obj = new Object();
    }
}
